import request from '@/utils/request'

// 查询分润金额列表
export function listAgreementmoney(query) {
  return request({
    url: '/Agreementmoney/Agreementmoney/list',
    method: 'get',
    params: query
  })
}

export function listfr(query) {
  return request({
    url: '/Agreementmoney/Agreementmoney/listfr',
    method: 'get',
    params: query
  })
}

// 查询分润金额详细
export function getAgreementmoney(id) {
  return request({
    url: '/Agreementmoney/Agreementmoney/' + id,
    method: 'get'
  })
}

// 新增分润金额
export function addAgreementmoney(data) {
  return request({
    url: '/Agreementmoney/Agreementmoney',
    method: 'post',
    data: data
  })
}

// 修改分润金额
export function updateAgreementmoney(data) {
  return request({
    url: '/Agreementmoney/Agreementmoney',
    method: 'put',
    data: data
  })
}

// 删除分润金额
export function delAgreementmoney(id) {
  return request({
    url: '/Agreementmoney/Agreementmoney/' + id,
    method: 'delete'
  })
}
